package controllers;

import java.util.ArrayList;

import dataobjects.AlbumTemplate;
import dbaccessors.DBAccessor;

/**
 * Implemented as a singleton.
 * 
 */

public class AlbumController {

	private static AlbumController instance = null;

	private AlbumController() {
	}

	public static AlbumController getInstance() {
		if (instance == null) {
			instance = new AlbumController();
		}
		return instance;
	}

	// methods

	public ArrayList<Integer> pasteCard(int aid, String username, int albumID) {
		return DBAccessor.getInstance().pasteCard(username, aid,
				albumID);
	}

	
	public ArrayList<AlbumTemplate> getActiveAlbums() {
		return DBAccessor.getInstance().getActiveAlbums();
	}
}
